home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat3c / putpwent.z / putpwent
Encoding:
Text File  |  2002-10-03  |  2.3 KB  |  67 lines

  1.  
  2.  
  3.  
  4. PPPPUUUUTTTTPPPPWWWWEEEENNNNTTTT((((3333CCCC))))                                                      PPPPUUUUTTTTPPPPWWWWEEEENNNNTTTT((((3333CCCC))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      putpwent - write password file entry
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      ####iiiinnnncccclllluuuuddddeeee <<<<ppppwwwwdddd....hhhh>>>>
  13.  
  14.      iiiinnnntttt ppppuuuuttttppppwwwweeeennnntttt ((((ccccoooonnnnsssstttt ssssttttrrrruuuucccctttt ppppaaaasssssssswwwwdddd ****pppp,,,, FFFFIIIILLLLEEEE ****ffff))));;;;
  15.  
  16. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  17.      _p_u_t_p_w_e_n_t is the inverse of _g_e_t_p_w_e_n_t(3C).  Given a pointer to a passwd
  18.      structure created by _g_e_t_p_w_e_n_t (or _g_e_t_p_w_u_i_d or _g_e_t_p_w_n_a_m), _p_u_t_p_w_e_n_t writes
  19.      a line on the stream _f, which matches the format of ////eeeettttcccc////ppppaaaasssssssswwwwdddd.
  20.  
  21. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  22.      getpwent(3C), getspent(3C), putspent(3C).
  23.  
  24. DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
  25.      _p_u_t_p_w_e_n_t returns non-zero if an error was detected during its operation,
  26.      otherwise zero.
  27.  
  28. WWWWAAAARRRRNNNNIIIINNNNGGGGSSSS
  29.      The above routine uses <<<<ssssttttddddiiiioooo....hhhh>>>>, which causes it to increase the size of
  30.      programs, not otherwise using standard I/O, more than might be expected.
  31.  
  32.      This call is only useful in a loop with _g_e_t_p_w_e_n_t(3C).  If NIS
  33.      interpretation of '+' fields is not disabled, the entire contents of the
  34.      NIS passwd map will then end up in /_e_t_c/_p_a_s_s_w_d.  This is most likely not
  35.      the desired effect.  See the __g_e_t_p_w_n_e_t__n_o__y_p and __g_e_t_p_w_e_n_t__n_o__s_h_a_d_o_w
  36.      variables in _g_e_t_p_w_e_n_t(3C) for a solution.
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.